package com.sixbro.shiro.uaa.service;

import com.sixbro.shiro.uaa.model.AccessToken;

import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @Author: Mr.Lu
 * @Since: 2020/6/19 17:36
 */
public interface AccessTokenService {

    void save(AccessToken entity);

    AccessToken getByAccessToken(String accessToken);

    AccessToken getByRefreshToken(String refreshToken);

    AccessToken getBySession(String sessionId, Long accessClientId);

    List<AccessToken> getBySession(String sessionId);

    boolean remove(String accessToken);
}
